import java.util.Scanner;
/**
 * processing example: working with a single logic operator
 * 
 * @author Amrita Mukherjee
 * @version 02/10/2012
 */
public class logicExample2
{
    public static void main(String[] args)
    {
        Scanner keyboard = new Scanner(System.in);
        
        System.out.println("This program helps you to make a decision. ");
        System.out.println();
        
        System.out.println("Have you finished your homeowrk? ");
        String input1 = keyboard.nextLine();
        boolean isHomeworkFinished = input1.startsWith("y");
        
        System.out.println("Have you done the laundry? ");
        String input2 = keyboard.nextLine();
        boolean isLaundryDone = input2.startsWith("y");
        
        if(isHomeworkFinished == true && isLaundryDone == true)
        {
            System.out.println("you can watch some TV");
        }
        else
        {
              System.out.println("you should finish your chores.");
        }
    }
}
/*
 * my test session:
 * This program helps you to make a decision. 

Have you finished your homeowrk? 
yes
Have you done the laundry? 
yes
you can watch some TV
This program helps you to make a decision. 

Have you finished your homeowrk? 
no
Have you done the laundry? 
no
you should finish your chores.
This program helps you to make a decision. 

Have you finished your homeowrk? 
no
Have you done the laundry? 
yes
you should finish your chores.
This program helps you to make a decision. 

Have you finished your homeowrk? 
yes
Have you done the laundry? 
no
you should finish your chores.


 */